var productModel = new Starcor.S67.MVC.Model("product_library");
productModel.query=function(params){
    NBOSS.ajax_v2(params,'/api/statistics/index.php?m=k1_d_1',function(data){
        if (data.code=='0'){
            productModel.data=data.data;
        }else{
            productModel.data = {};
            window.top.NBOSS.Alert('错误',data.reason);
        }
        productModel.disEvent('query', productModel.data);
    });
};

productModel.productDetail=function(params){
    NBOSS.ajax_v2(params,'/api/statistics/index.php?m=k1_d_2',function(data){
        if (data.code=='0'){
            productModel.productdata=data;
        }else{
            productModel.productdata = {};
            window.top.NBOSS.Alert('错误',data.reason);
        }
        productModel.disEvent('productDetail', productModel.productdata);
    });
};


	